package com.ideal.lx_mss.common;

import lombok.Data;
import org.json.JSONArray;
import org.json.JSONObject;

@Data
public class DataInfo {
    private String db_type; //数据库类别
    private String itfcode; //表名
    private JSONArray dataload; //数据
    private String datatype;

    public DataInfo(String db_type, String itfcode, JSONArray dataload, String datatype) {
        this.db_type = db_type;
        this.itfcode = itfcode;
        this.dataload = dataload;
        this.datatype = datatype;
    }

    public DataInfo() {
    }

    public void pushDataload(JSONObject json){
        this.dataload = this.dataload.put(json);
    }
}
